package com.cqndt.disaster.device.dao;

import com.cqndt.disaster.device.domain.TabDeviceInitialValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author lv
 */
@Mapper
public interface TabDeviceInitialValueMapper {

    int deleteByPrimaryKey(int id);

    int insertSelective(TabDeviceInitialValue tabDeviceInitialValue);

    TabDeviceInitialValue selectByPrimaryKey(int id);

    List<TabDeviceInitialValue> selectAll(@Param("search") String search);

    int updateByPrimaryKeySelective(TabDeviceInitialValue tabDeviceInitialValue);

    /**
     * 根据传感器编号获取设备初始值
     * @param sensorNo
     * @return
     */
    TabDeviceInitialValue selectBySensorNo(@Param("sensorNo") String sensorNo);
}